<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>  
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<h3>Basic Information</h3> 
<div style="height: 15px;" class="questionnaire_submit_button"></div>
<div id="reasonForRegistrationError" style="display: none;" class='error'>
		<img style="height:20px; float: left;" alt="error" src="/static/images/ERROR.gif" /> Please select a reason for Registration.
</div>
<div>
	<form:form commandName="userInfo" action="javascript:void(0)"  dojoType="dijit.form.Form"  id="regReasonForm"> 
		<ul >
			<c:choose>
				<c:when test="${userInfo.isCompany}">
					<li class="quest">
						<span>Company Name</span>
						<br> 
						<form:input data-dojo-type="dijit.form.TextBox" style= "width:300px;" path="companyName"/></li><li class="quest">
						<span>Company Website</span>
						<br>
						<form:input data-dojo-type="dijit.form.TextBox" style= "width:300px;" path="companyWebsite"/>
					</li>
				</c:when>
				<c:otherwise>
					<li class="quest">
						<span>First Name</span>
						<br> 
						<form:input data-dojo-type="dijit.form.TextBox" style= "width:300px;" path="firstName"/></li><li class="quest">
						<span>Last Name</span>
						<br>
						<form:input data-dojo-type="dijit.form.TextBox" style= "width:300px;" path="lastName"/>
					</li>
				</c:otherwise>
			</c:choose>
			
		</ul>
		<h3>You are Here for ?</h3> 
		<div style="height: 15px;" class="questionnaire_submit_button"></div>
		<ul  >
			
		<li> 		
			<form:checkboxes data-dojo-type="dijit.form.CheckBox"  items="${allActivities}" path="activityTypes" itemLabel="displayName" delimiter="</li><li>" /> </li>
			
		</ul>
		<div class="questionnaire_submit_button">
			
				<button style="margin-left: 30px; margin-top: 20px;"  type="submit" name="submit" value="submit" id="reasonForRegistrationSubmit" class="ui-action-tag action-primary"><span class="ui-action"><span class="ui-action-content">Submit</span></span></button>
				</div>
	</form:form>
</div>